package com.gigmissions.server.dao;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


/**
 * java represenatation of one of these:
 * 
 *  "gig title2": {
		    "venuename": "The Tote",
		    "address": "25 Bills Road, Collingwood",
		    "lat": "-37.4546",
		    "lng": "144.4446",
		    "imgurl": "http://gigmissions.appspot.com/getimage.img?imgid=x33z",
		    "phoneNumber": "(03) 826-6669",
		    "price": "$12",
		    "date": "Friday 13 December 2009",
		    "time": "9pm",
		    "acts": [
		      { "actname": "The Wowers", "link": "http://theggckers.com" },
		      { "actname": "The Boners", "link": "http://theldners.com" },
		      { "actname": "Nillers", "link": "http://thekilghggs.com" }
		    ]
		  }
		}
 * 
 * 
 * @author andrew
 *
 */

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class GigModel {
	
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
	@Persistent
	private String title;
	@Persistent
	private String venuename;
	@Persistent
	private String address;
	@Persistent
	private String lat;
	@Persistent
	private String lng;
	@Persistent
	private String imgurl;
	@Persistent
	private String phone;
	@Persistent
	private String price;
	@Persistent
	private String date;
	@Persistent
	private String time;
	@Persistent
	private List<Act> acts;
	public Long getId() {
		return id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getLat() {
		return lat;
	}
	public void setLat(String lat) {
		this.lat = lat;
	}
	public String getLng() {
		return lng;
	}
	public void setLng(String lng) {
		this.lng = lng;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public List<Act> getActs() {
		return acts;
	}
	public void setActs(List<Act> acts) {
		this.acts = acts;
	}
	public String getVenuename() {
		return venuename;
	}
	public void setVenuename(String venuename) {
		this.venuename = venuename;
	}
		
	
	
}
